<?php
/**
 * +------------------------------
 * Created by PhpStorm.
 * +------------------------------
 * User: xxx
 * +------------------------------
 * DateTime: 2020/3/4 11:53
 * +------------------------------
 */

date_default_timezone_set('PRC');

$config = [
    'rewrite' => [
        'admin/index.html' => 'admin/main/index',
        'admin/<c>_<a>.html' => 'admin/<c>/<a>',
        '<m>/<c>/<a>' => '<m>/<c>/<a>',
        '<c>/<a>' => '<c>/<a>',
        '/' => 'main/index',
    ],
];

$domain = [
    "default" => [ // 默认
        'debug' => 1,
        'telegram' => [
            'id' => '894822530',
            'token' => '1042433935:AAFmT_Xc5E_egg-rwDDcAVmDn7X7s0UT8FY'
        ],
        'mysql' => [
            'MYSQL_HOST' => 'localhost',
            'MYSQL_PORT' => '3306',
            'MYSQL_USER' => 'root',
            'MYSQL_DB' => 'test',
            'MYSQL_PASS' => '',
            'MYSQL_CHARSET' => 'utf8',
        ],
    ],

    "other" => [
        'debug' => 0,
    ],
];
// 为了避免开始使用时会不正确配置域名导致程序错误，加入判断
if (empty($domain['default'])) die("配置不正确，请确认默认（default）的配置是否存在！");

return $domain['default'] + $config;